﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Web.UI;
using Dragon.Prototype1.Infrastructure.Controls;

namespace Dragon.Prototype1.Infrastructure.FormBuilder
{
    public class LabeledControl
    {
        public LabeledControl(Label label, WebControl control)
            : this(label, control, false, false)
        { 
        
        }

        public LabeledControl(Label label,WebControl control, bool isRequired,bool occupyWholeRow)
        {
            this.Label = label;
            this.Control = control;
            this.IsRequired = isRequired;
            this.OccupyWholeRow = occupyWholeRow;
        }

        public Label Label
        {
            get;
            set;
        }

        public WebControl Control
        {
            get;
            set;
        }

        public bool IsRequired
        {
            get;
            set;
        }

        public bool OccupyWholeRow
        {
            get;
            set;
        }
    }
}
